<?php

use Illuminate\Routing\Router;


Route::group([
    'prefix' => 'admin/blank',
    'namespace' => 'Frieza\\Modules\\Blank\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {

//    $router->get('/area', 'IndexController@area')->name('Blank.area');
    $router->get('/searchTag', 'BlankSelectController@searchTag')->name('Blank.tag');

    //整屋筛选
    $router->get('/select/index', 'BlankSelectController@index')->name('Blankselect.index');
    $router->get('/select/draftlist', 'BlankSelectController@draftlist')->name('Blankselect.draftlist');

    $router->get('/select/audit/{bid}', 'BlankSelectController@audit')->name('Blankselect.audit');
    //存储结果
    $router->post('/select/audit/save', 'BlankSelectController@auditSave')->name('Blankselect.saveaudit');

    #运营评论和运营点赞、复制链接
    $router->get('select/comment/{id}', 'BlankSelectController@addCommentPop');//添加运营评论弹窗
    $router->post('select/comment/{id}/save', 'BlankSelectController@saveComment');//添加运营评论提交
    $router->get('select/comment/check/{id}', 'BlankSelectController@checkComment');//校验运营评论
    $router->get('select/comment/{id}/commentaccount', 'BlankSelectController@commentAccount');//运营评论账号列表
    $router->get('select/comment/{id}/commentaccount/create', 'BlankSelectController@addCommentAccount');//添加运营评论账号
    $router->post('select/comment/{id}/commentaccount/save', 'BlankSelectController@commentAccountSubmit');//添加提交
    $router->get('select/like/{id}', 'BlankSelectController@saveLike');//添加运营点赞
    $router->get('select/copy/{id}','BlankSelectController@copyUrl');//复制H5链接
    $router->get('select/business/{id}/{type}','BlankSelectController@editBusiness');
    $router->get('select/displayBusiness/{id}/{type}','BlankSelectController@displayBusiness');
    //精选
    $router->get('/select/privateFrom/{bid}', 'BlankSelectController@privateFrom');
    $router->post('/select/addBest/{bid}', 'BlankSelectController@addBest');
    $router->get('/select/delBestFrom/{bid}', 'BlankSelectController@delBestFrom');
    $router->post('/select/delBest', 'BlankSelectController@delBest');
    $router->post('/select/setPrivate', 'BlankSelectController@setPrivate');
    $router->post('/select/del/{bid}', 'BlankSelectController@del');
    $router->post('/select/reCheck/{bid}', 'BlankSelectController@reCheck');
    $router->post('/select/recoverPrivateOfBlank/{bid}', 'BlankSelectController@recoverPrivateOfBlank');
    // 常用语编辑
 //   $router->get('/select/normalword/list', 'BlankSelectController@editNormalWord');
    // 常用语保存
//    $router->post('/select/normalword/list/save', 'BlankSelectController@saveNormalWord');
//
    $router->get('/select/exportNormarlData', 'BlankSelectController@exportNormarlData');

    //文章列表页
    $router->get('/BlankList/index','BlankListController@index');
    $router->get('/BlankList/copy/{id}','BlankListController@copyUrl');//复制H5链接
});
